﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShiQuan.IotDevice.Entity
{
    /// <summary>
    /// 设备最新记录
    /// </summary>
    public class IotDeviceLastEntity
    {
        /// <summary>
        /// 唯一标识
        /// </summary>
        [Key]
        [Display(Name = "唯一标识"), MaxLength(50)]
        public string Id { get; set; }
        /// <summary>
        /// 客户标识
        /// </summary>
        [Display(Name = "客户标识"), MaxLength(50)]
        public string RefCorpId { get; set; }
        /// <summary>
        /// 设备信息标识
        /// </summary>
        [Display(Name = "设备信息标识"), MaxLength(50)]
        public string RefDeviceId { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        [Display(Name = "名称"), MaxLength(50)]
        public string DeviceName { get; set; }
        /// <summary>
        /// 设备类型：
        /// </summary>
        [Display(Name = "设备类型"), MaxLength(50)]
        public string DeviceType { get; set; }
        /// <summary>
        /// 安装标识
        /// </summary>
        [Display(Name = "安装标识"), MaxLength(50)]
        public string RefInstallId { get; set; }
        /// <summary>
        /// 设备标识
        /// </summary>
        [Display(Name = "设备标识"), MaxLength(50)]
        public string SerialNumber { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        [Display(Name = "时间")]
        public DateTime DateTime { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        [Display(Name = "序号")]
        public int Index { get; set; }
        /// <summary>
        /// 温度1
        /// </summary>
        [Display(Name = "温度1")]
        public decimal? OC01Value { get; set; }
        /// <summary>
        /// 温度1
        /// </summary>
        [Display(Name = "温度1"), MaxLength(50)]
        public string OC01Text { get; set; }
        /// <summary>
        /// 湿度1
        /// </summary>
        [Display(Name = "湿度1")]
        public decimal? Humidity01Value { get; set; }
        /// <summary>
        /// 湿度1
        /// </summary>
        [Display(Name = "湿度1"), MaxLength(50)]
        public string Humidity01Text { get; set; }
        /// <summary>
        /// 温度2
        /// </summary>
        [Display(Name = "温度2")]
        public decimal? OC02Value { get; set; }
        /// <summary>
        /// 温度2
        /// </summary>
        [Display(Name = "温度2"), MaxLength(50)]
        public string OC02Text { get; set; }
        /// <summary>
        /// 湿度2
        /// </summary>
        [Display(Name = "湿度2")]
        public decimal? Humidity02Value { get; set; }
        /// <summary>
        /// 湿度2
        /// </summary>
        [Display(Name = "湿度2"), MaxLength(50)]
        public string Humidity02Text { get; set; }
    }
}
